package jp.oesf.mybuttonsample;

import android.app.Dialog;
import android.content.Context;
import android.view.Window;
import android.widget.Button;

public class MyDialog extends Dialog {
	
	Button bt;

    public MyDialog(Context context, android.view.View.OnClickListener listener) {
        super(context);
        requestWindowFeature(Window.FEATURE_NO_TITLE); 
        setContentView(R.layout.dialog);
        bt = (Button)findViewById(R.id.button1);
        bt.setOnClickListener(listener);
    }

	@Override
	protected void onStop() {
		super.onStop();
		bt.setOnClickListener(null);
	}
    
    
}
